package main

import "fmt"
import "FreqCtrl"

func main(){
    err := FreqCtrl.Init("tcp","127.0.0.1:6379")
    if err != nil{
       fmt.Println(err)
       return 
    }
    defer FreqCtrl.ReleaseCon()
    _,err = FreqCtrl.SetUserFreq("yang","ad1","3")
    if err != nil{
        fmt.Println(err)
    }
    reply,err := FreqCtrl.GetUserFreq("test")
    if err != nil{
        fmt.Println(err)
    }
    fmt.Printf("%T \n",reply)
    for k,v := range reply{
        fmt.Printf("%s---%d\n",k,v)
    }
}
